<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
    <link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">
    <!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
    <script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>

    <script src="js/vue.js"></script>
</head>
<body>
    <div id="app-17">

        <input type="text" @keyup.enter="test">
        <input type="text" @keyup.aaa="test">

        <input type="text" @keyup.ctrl.j="test">

    </div>

    <script type="text/javascript">
        <!-- 按键 j 设置别名 aaa -->
        Vue.config.keyCodes.aaa = 74
        Vue.config.keyCodes.j = 74
        var vm = new Vue({
            el: '#app-17',
            data: {},
            methods: {
                test: function () {
                    alert("enter松开触发")
                }
            }
        })
    </script>
</body>
</html>